package com.yida.wy.vote.outside.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author lqq
 * @date 2023-03-10
 */
@ApiModel("公维金业主投票的项目详情输出")
public class WyVoteOwnerGwjProjectDetailDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票ID")
	private Long voteId;

	@ApiModelProperty("投票标题")
	private String voteTitle;

	@ApiModelProperty("浏览人数")
	private Integer accessNum;

	@ApiModelProperty("投票发起时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startTime;

	@ApiModelProperty("投票结束时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endTime;

	@ApiModelProperty("专有部分总面积")
	private BigDecimal totalSize;

	@ApiModelProperty("业主总人数")
	private Integer totalOwner;

	@ApiModelProperty("选项详情")
	private List<WyVoteResultDetailItemDTO> itemCount;

	@ApiModelProperty("投票说明内容")
	private String voteContent;

	@ApiModelProperty("投票类别")
	private String voteType;

	@ApiModelProperty("选项模板json字符串")
	private String templateJson;

	@ApiModelProperty("投票状态：0未投票、1投票中、2取消、3投票结束")
	private String voteStatus;


	public BigDecimal getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(BigDecimal totalSize) {
		this.totalSize = totalSize;
	}

	public Integer getTotalOwner() {
		return totalOwner;
	}

	public void setTotalOwner(Integer totalOwner) {
		this.totalOwner = totalOwner;
	}

	public Integer getAccessNum() {
		return accessNum;
	}

	public void setAccessNum(Integer accessNum) {
		this.accessNum = accessNum;
	}

	public String getVoteStatus() {
		return voteStatus;
	}

	public void setVoteStatus(String voteStatus) {
		this.voteStatus = voteStatus;
	}

	public Long getVoteId() {
		return voteId;
	}

	public void setVoteId(Long voteId) {
		this.voteId = voteId;
	}

	public String getVoteTitle() {
		return voteTitle;
	}

	public void setVoteTitle(String voteTitle) {
		this.voteTitle = voteTitle;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getVoteContent() {
		return voteContent;
	}

	public void setVoteContent(String voteContent) {
		this.voteContent = voteContent;
	}

	public String getVoteType() {
		return voteType;
	}

	public void setVoteType(String voteType) {
		this.voteType = voteType;
	}

	public String getTemplateJson() {
		return templateJson;
	}

	public void setTemplateJson(String templateJson) {
		this.templateJson = templateJson;
	}

	public List<WyVoteResultDetailItemDTO> getItemCount() {
		return itemCount;
	}

	public void setItemCount(List<WyVoteResultDetailItemDTO> itemCount) {
		this.itemCount = itemCount;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("GwjVoteOwnerGwjProjectDetailDTO{");
		sb.append("voteId=").append(voteId);
		sb.append(", voteTitle='").append(voteTitle).append('\'');
		sb.append(", accessNum=").append(accessNum);
		sb.append(", startTime=").append(startTime);
		sb.append(", endTime=").append(endTime);
		sb.append(", totalSize=").append(totalSize);
		sb.append(", totalOwner=").append(totalOwner);
		sb.append(", itemCount=").append(itemCount);
		sb.append(", voteContent='").append(voteContent).append('\'');
		sb.append(", voteType='").append(voteType).append('\'');
		sb.append(", templateJson='").append(templateJson).append('\'');
		sb.append(", voteStatus='").append(voteStatus).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
